import java.util.ArrayList;

public class E {
    public static boolean isNumeric(String str) {
        for (int i = str.length(); --i >= 0; ) {
            if (!Character.isDigit(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }
    public static void main(String[] args) {
        C c = new C();
        String read = c.read();
        String[] strings = read.split("");
        ArrayList<String> arrayList = new ArrayList<>();
        String[] number = null;
        for (String ch : strings) {
            if (isNumeric(ch)) {
                arrayList.add(ch);
            }
        }
        number = arrayList.toArray(new String[0]);
        F.main(number);
    }
}
